<template>
  <g-title>
    <el-button type="primary">新增</el-button>
    <div>deviceDetail1212</div>
  </g-title>
</template>
<script setup lang="ts">
import mock from "@/mock";
mock.getdevicedetail();
import { useRoute } from "vue-router";
import { onMounted } from "vue";
import axios from "axios";
const routes = useRoute();
// import axios from 'axios'
// let tableData = ref([]);
onMounted(() => {
  axios.get(`/getdevicedetail/${routes.params.id}`).then(res => {});
});
enum Color {Red = 1, Green = 2, Blue =3}
let c: Color = Color.Green;
console.log('c',c)
</script>
<style lang="scss">
</style>